import request from '@/utils/request'

// 查询项目桩机列表
export function listProjectPilingMachine(query) {
  return request({
    url: '/pile/projectPilingMachine/list',
    method: 'get',
    params: query
  })
}

// 查询项目桩机所有列表
export function listAllProjectPilingMachine(query) {
  return request({
    url: '/pile/projectPilingMachine/listAll',
    method: 'get',
    params: query
  })
}

// 查询项目桩机详细
export function getProjectPilingMachine(id) {
  return request({
    url: '/pile/projectPilingMachine/getInfo/' + id,
    method: 'get'
  })
}

// 新增项目桩机
export function addProjectPilingMachine(data) {
  return request({
    url: '/pile/projectPilingMachine/add',
    method: 'post',
    data: data
  })
}

// 修改项目桩机
export function updateProjectPilingMachine(data) {
  return request({
    url: '/pile/projectPilingMachine/edit',
    method: 'post',
    data: data
  })
}

// 删除项目桩机
export function delProjectPilingMachine(id) {
  return request({
    url: '/pile/projectPilingMachine/remove/' + id,
    method: 'get'
  })
}
